﻿using voidbox;
using System;
using System.Collections.Generic;
using System.Text;
using TTEngine.Graphics;
using TTEngine.TTMath;

namespace TTEngine.Graphics
{ 
    public class SingleTextureSprite
    {
        public readonly Texture2D Texture;
        public readonly fAABB UV;
        public int PixelWidth
        {
            get
            {
                return (int)(Texture.Width * UV.Width);
            }
        }
        public int PixelHeight
        {
            get
            {
                return (int)( Texture.Height * UV.Height);
            }
        }
        public SingleTextureSprite(Texture2D texture, fAABB uv)
        {
            Texture = texture;
            UV = uv;
        }
    }
}
